import 'package:flutter/material.dart';

class CheckboxFormFieldExample extends FormField<bool> {
  CheckboxFormFieldExample(
      {Key key,
      FormFieldSetter<bool> onSaved,
      FormFieldValidator<bool> validator,
      bool initialValue,
      bool autovalidate: false,
      bool enabled: true})
      : super(
            onSaved: onSaved,
            validator: validator,
            initialValue: initialValue,
            autovalidate: autovalidate,
            enabled: enabled,
            builder: (FormFieldState<bool> field) {
              return Center();
            });
}
